package com.yuw.package6;

public class StudentEnglish extends Student {
    // 属性
    private double speakScore;

    // 行为
    @Override
    public double calculateTotalScore() {
        return speakScore * 0.5 + this.getMiddleScore() * 0.25 + this.getEndScore() * 0.25;
    }

    public double getSpeakScore() {
        return speakScore;
    }

    public void setSpeakScore(double speakScore) {
        this.speakScore = speakScore;
    }
}
